<%@ Page Language="C#" MasterPageFile="app-frame.master" AutoEventWireup="true"
    CodeFile="DisplayGrid_old.aspx.cs" Inherits="app_frame_Default2" Title="Untitled Page" EnableEventValidation="false"  %>


<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" runat="Server">
   <script language="javascript" type="text/javascript" src="scripts/Treeview.js"></script><!--Added By Dhanapal On Jan 07 2010-->
   <script language="javascript" type="text/javascript" src="scripts/CategoryView.js"></script><!--Added By Dhanapal On Jan 27 2010-->
   <script language="javascript" type="text/javascript" src="scripts/displaygrid.js"></script>   
    <table style="width: 100%;" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td>
                <asp:Label ID="lblMessage" runat="server" CssClass="defaultFont" Font-Size="X-Small" ForeColor="Black"></asp:Label>
            </td>
            <td style="width:1%"></td>
        </tr>
    </table>
    <table id="table1" border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" runat="server">
        <tr>
            <td align="left" valign="middle" style="height:4px;"><asp:Label CssClass="defaultFont" ID="lblMsg" runat="server" ForeColor="Black" Font-Size="X-Small" Font-Bold="False" Font-Italic="False"></asp:Label></td>
            <td style="width: 1%"></td>
        </tr>
        <tr>
            <td>
                <table id="Table2" border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr class="pgForm_title">
                        <td align="left" valign="middle">
                            <asp:PlaceHolder ID="ph_page_caption" runat="server"></asp:PlaceHolder>
                            <asp:Label ID="lblHeading" runat="server"></asp:Label></td>
                        <td align="right" valign="middle">
                            <%--<img id="imgHelp" border="0" height="11" src="../images/ic_help.png" alt="" width="12"  />--%>
                            <%--<asp:ImageButton runat="server" ID="imgHelp" ImageUrl="images/ic_help.png" Visible="false" CausesValidation="False"></asp:ImageButton>--%>
                            <asp:Image runat="server" ID="imgHelp" ImageUrl="images/ic_help.png" Visible="false" CausesValidation="False"></asp:Image>&nbsp;</td>
                    </tr>
                </table>
                </td>
                <td style="width: 1%">&nbsp;</td>
        </tr>
        <tr>
            <td align="center">
                <asp:PlaceHolder ID="ph_page_desc" runat="server"></asp:PlaceHolder>
            </td>
            <td style="width: 1%"></td>
        </tr>
        <tr><td align="right"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>        
        <!--Added BY Dhanapal-->
        <td id="PageViewtypeholder" style="padding-left:2px;padding-top:1px;" runat="server" >
        <asp:DropDownList ID="ddlPageViewType"  Height="20px"  AutoPostBack="true" runat="server" class="controlFont"></asp:DropDownList></td>        
        <td style="padding-left:5px;">
            <asp:Label ID="lblListHeader" runat="server" Text="" CssClass="controlFont"></asp:Label></td>
            <td align="right">
        <div id="panelSearchholder" runat="server">
        <table border="0" cellpadding="0" cellspacing="0">
        <tr><td style="padding-right:2px;">
            <asp:UpdateProgress id="UpdateProgress2" runat="server" AssociatedUpdatePanelID="">
                <progresstemplate>
                    <asp:Image id="ImgTop1" runat="server" ImageUrl="~/Images/load.gif"></asp:Image> 
                </progresstemplate>
            </asp:UpdateProgress></td>
            <td style="padding-top:1px;">
            <asp:TextBox Text="Record Search" CssClass="controlFont" ID="txtObjectSearch" Width="120px" Height="20px" runat="server" onFocus="javascript:mb_datasrch_txt_focus(this);" onBlur="javascript:mb_datasrch_txt_blur(this);" ToolTip="Search all records" style="vertical-align:middle;color:#808080;padding-left:3px;border:solid 1px #7F9DB9;border-right:none;"></asp:TextBox></td>
            <td style="padding-top:1px;">
                <asp:ImageButton ID="ImageButton1" CssClass="SearchPopup" runat="server" ImageUrl="images/objectsearch2_disabled.gif" AlternateText="Search all records" OnClientClick="javascript:return doObjectSearch();" style="vertical-align:middle;" />
            <asp:Button ID="btnObjectSearch" OnClientClick="javascript:return doObjectSearch();" UseSubmitBehavior="true" runat="server" Text="Go" Visible="false" CausesValidation="False" onMouseOver="mb_datasrch_img_focus()" onFocus="mb_datasrch_img_focus()" onmouseout="mb_datasrch_img_blur()" onBlur="mb_datasrch_img_blur()" /><asp:HiddenField
                ID="hfObjectSearch" runat="server" />
            </td>
            <td style="padding-right:2px;padding-left:2px;padding-top:1px;vertical-align:bottom;">
            <asp:Button ID="btnfilter" OnClientClick="javascript:FilterClick();" Text="Filter" UseSubmitBehavior="false" runat="server" OnClick="btnfilter_Click"></asp:Button>
                <%--<asp:LinkButton style="margin-left:3px;text-decoration:none;vertical-align:bottom;" OnClientClick="javascript:window.location.href = location.href;return false;" ID="lnkBtnViewAll" runat="server" Visible="false" CssClass="controlFont" Font-Size="11px" Font-Bold="true" ToolTip="View all records"><div style="border:solid 1px #7F9DB9;cursor:pointer;vertical-align:top;padding-right:3px;"><img src='images/undo2.gif' border='0' alt="View all Records" style="margin-right:3px;border:none;vertical-align:middle;margin-top:1px;margin-left:3px;" /><span style="height:20px;">View All</span></div></asp:LinkButton>--%>
                <asp:LinkButton style="text-decoration:none;vertical-align:bottom;" OnClientClick="javascript:mb_loadViewAllUrl();return false;" ID="lnkBtnViewAll" runat="server" Visible="false" CssClass="controlFont" Font-Size="11px" Font-Bold="true" ToolTip="View all records"><table style="border:solid 1px #7F9DB9;height:20px;cursor:pointer;" border='0' cellpadding='0' cellspacing='0'><tr><td><img src='images/undo.gif' border='0' alt="View all Records" style="margin-left:3px;" /></td><td style="padding-left:3px;padding-right:3px;font-weight:bold;" class="controlFont">View All</td></tr></table></asp:LinkButton>
            </td></tr></table>
          
               <script language="JavaScript" type="text/javascript" src="scripts/DisplayGrid_middle.js"></script><%--Added by Jayashree on 12-Sep-2014,for js file--%>
           
            </div></td></tr></table>
            </td><td style="width: 1%"></td></tr>
        <tr>
            <td class="displaygridheader">
            <asp:UpdatePanel id="upnlFilter" runat="server"><contenttemplate>
            <div style="width:100%;text-align:center;">
<table id="table51" border="0" cellpadding="2" cellspacing="0" style="margin: 0 auto;border:solid 1px #CECECE;">
<asp:PlaceHolder id="ph_quick_search" runat="server"></asp:PlaceHolder>
</table></div>
</contenttemplate>
                    <triggers>
<asp:AsyncPostBackTrigger ControlID="btnfilter" EventName="Click"></asp:AsyncPostBackTrigger>
</triggers>
                    </asp:UpdatePanel>
             </td>
                <td style="width: 1%;"></td>
        </tr>
        
   
        <tr>
            <td id="tdAddButton" valign="top"  runat="server" style="padding-left:2px;padding-bottom:1px;"> <!--class="Form_fld_title"-->
                <%-- <asp:Button ID="btnAddNewTop" runat="server" Text="Add New" UseSubmitBehavior="False" CausesValidation="False" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnAddNew','Loading...'); window.location.href(GetEditPageURL()); return false;" />
                <!-- OnClick="btnAdd_Click"  --> --%>
                <input id="btnAddNewTop" type="button" value="Add New" runat="server" />
                <asp:HiddenField ID="hfSort" runat="server" />
                <asp:HiddenField ID="hffilterclick" runat="server" />
                <%--</tr>
                </table>--%>
            </td>
            <td style="width: 1%"></td>
        </tr>
        <tr>
        
        <td>
            <asp:UpdatePanel id="uplnGridView" runat="server">
            <contenttemplate>
            <div id="panelDynamicGrid" runat="server">
            <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
            <td  style="width:100%" id="tdDisplayGrid" runat="server">
         </td></tr>
         <tr>
            <td class="displaygridbottom" style="white-space:nowrap;" >
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="left" style="width:100px;padding-left:2px;">
                            <input id="btnAddNew" type="button" value="Add New" runat="server" />
                        </td>
                        <td align="left" style="font-family: Verdana; font-size: 11px;">
                            <asp:Label ID="lblRecordNoInfo" runat="server"></asp:Label></td>
                        <td align="right" style="font-size: 11px; font-family: Verdana;" valign="middle">
                            <asp:Label ID="lblPageNoInfo" runat="server" Text=""></asp:Label></td>
                        <td style="width:20px;padding-left:5px;" align="left" valign="middle">
                        <asp:UpdateProgress id="UpdateProgress1" runat="server" AssociatedUpdatePanelID="">
                            <progresstemplate>
                                <asp:Image id="ImgBottom1" runat="server" ImageUrl="~/Images/load.gif"></asp:Image> 
                            </progresstemplate>
                        </asp:UpdateProgress>
                        </td>
                        <td align="right" valign="middle">
                            <asp:ImageButton ID="btnFirst"  runat="server" ImageUrl="Images/first.gif" CausesValidation="False"/>
                            <asp:ImageButton ID="btnPrev" runat="server" ImageUrl="Images/back.gif" CausesValidation="False"/>
                            <asp:ImageButton ID="btnNext" runat="server" ImageUrl="Images/front.gif" CausesValidation="False"/>
                            <asp:ImageButton ID="btnLast" runat="server" ImageUrl="Images/last.gif" CausesValidation="False"/>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="height: 30" align="center">
                <input id="hiheditpageURL" runat="server" type="hidden" />
                <input id="hihCurrentPageId" runat="Server" type="hidden" value="1" />
                <input id="hihLastPageId" runat="Server" type="hidden" value="1" />
                <input id="hihTotalRecordCount" runat="Server" type="hidden" value="0" />
                <input id="hihDeleteClick" runat="Server" type="hidden" value="0" />
                <input id="hihDeleteafrowid" runat="Server" type="hidden"/>
            </td>
        </tr>
         </table>
         </div>
         <div id="panelDynamicTree" runat="server" class="dynamicTreeholder" >
          <asp:HiddenField ID="hdnParentField" runat="server" Value="" />
          <asp:HiddenField ID="hdnChildField" runat="server" Value="" />
          <asp:HiddenField ID="hdnPageSetId" runat="Server" Value="" />
          </div>
          
          <div id="panelDynamicCategory" runat="server">
          <asp:HiddenField ID="hdnPagePermission" runat="server" Value="" />
          <asp:HiddenField ID="hdngroupingField" runat="server" Value="" />
          <asp:HiddenField ID="hdnCategoryPaging" runat="server" Value= "" />
          <asp:HiddenField ID="hdnCategoryPageSetId" runat="server" Value= "" />
          <asp:HiddenField ID="hdnCategoryEditPage" runat="server" Value= "" />
          </div>
          
            </contenttemplate>
            </asp:UpdatePanel>
        
         </td> <%-- Srivatsan  --%>
         
            <%-- srivatsan <td  style="width:100%" id="tdDisplayGrid" runat="server">
            </td>--%>
            <td style="width: 1%">&nbsp;</td>
        </tr>        
        <%--<tr>
            <td bgcolor="#000000" height="1">
            </td>
        </tr>--%>
       <%--<tr> Srivatsan
            <td class="displaygridbottom" style="white-space:nowrap;" >
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="left" style="width:100px">&nbsp;
                        <input id="btnAddNew" type="button" value="Add New" runat="server" />
                        </td>
                        <td align="left" style="font-family: Verdana; font-size: 11px;">
                            <asp:Label ID="lblRecordNoInfo" runat="server"></asp:Label></td>
                        <td align="right" style="font-size: 11px; font-family: Verdana;" valign="middle">
                            <asp:Label ID="lblPageNoInfo" runat="server" Text=""></asp:Label></td>
                        <td align="right" valign="middle">
                            <asp:ImageButton ID="btnFirst"  runat="server" ImageUrl="Images/first.gif" CausesValidation="False"/>
                            <asp:ImageButton ID="btnPrev" runat="server" ImageUrl="Images/back.gif" CausesValidation="False"/>
                            <asp:ImageButton ID="btnNext" runat="server" ImageUrl="Images/front.gif" CausesValidation="False"/>
                            <asp:ImageButton ID="btnLast" runat="server" ImageUrl="Images/last.gif" CausesValidation="False"/>
                        </td>
                    </tr>
                </table>
            </td>
            <td style="width: 1%">&nbsp;</td>
        </tr>--%>
        
    </table>
   
       <script language="JavaScript" type="text/javascript" src="scripts/DisplayGrid_bottom.js"></script><%--Added by Jayashree on 12-Sep-2014,for js file--%>
    
</asp:Content>
